package semiproject.models;

public class StudentVO {
	private int stdno;
	private String name;
	private String address;
	private String birth;
	// private SubjectVO sjvo;				수강하는 과목 받아오기
	// private departVO dvo;					전공 학과
	private ProfessorVO pvo;				// 지도 교수
	
	public StudentVO(String name, String address, String birth) {
		this.name = name;
		this.address = address;
		this.birth = birth;
	}

	public int getStdno() { return stdno; }
	public void setStdno(int stdno) { this.stdno = stdno; }

	public String getName() { return name; }
	public void setName(String name) { this.name = name; }

	public String getAddress() { return address; }
	public void setAddress(String address) { this.address = address; }

	public String getBirth() { return birth; }
	public void setBirth(String birth) { this.birth = birth; }

	public ProfessorVO getPvo() { return pvo; }
	public void setPvo(ProfessorVO pvo) { this.pvo = pvo; }
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(stdno).append(name).append(address).append(birth).append(pvo.getName());
		return sb.toString();
	}	
}
